#pragma once
#include "Graphics_Lib.h"
#include "HelpfulData.h"

class Line
{
private:
	Texture * m_tex;
	V2DF m_start;
	V2DF m_end;
	float m_length;
	float m_angle;
	int m_numSprites;
	RECT m_lastSprite;
	int m_spriteHeight;
	int m_spriteWidth;
	void calculate();
public:
	Line();
	~Line();
	void release();
	void initialize(Texture * a_tex, V2DF start, V2DF end);
	void render();
	void update(float dT);
	void setStart(V2DF start);
	void setEnd(V2DF end);
	V2DF getStart() { return m_start; }
	V2DF getEnd() { return m_end; }
	Texture* getTextureReference() { return m_tex; }
};